package com.swinw.asumall.ware.dao;

import com.swinw.asumall.ware.entity.WareSkuEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品库存
 * 
 * @author 罗义华
 * @email 2407550328@qq.com
 * @date 2020-10-04 13:52:51
 */
@Mapper
public interface WareSkuDao extends BaseMapper<WareSkuEntity> {

    void updateWareSkuNum(@Param("skuId") Long skuId, @Param("wareId") Long wareId, @Param("skuNum") Integer skuNum);

    WareSkuEntity selectBySkuId(@Param("skuId") Long skuId);
}
